{% load staticfiles %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{% static "/bootstrap/css/bootstrap.min.css" %}">
    <link rel="shortcut icon" href="{% static 'images/disk01.ico' %}"/>
    <title>洞 妖 招 聘</title>
    <style>
        body {
            background-image: url("{% static "images/menubg.jpg" %}");
            background-size: cover;
            background-position: center;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <a class="navbar-brand" href="#">{{ user_name }} 您好！</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item">
                {% if is_admin == 1 %}
                <a class="nav-link" href="/echarts/admin_echarts/">文件可视化</a>
                {% else %}
                <a class="nav-link" href="/echarts/user_echarts/">文件可视化</a>
                {% endif %}
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/user/list/">用户列表</a>
            </li>
        </ul>
        <form class="form-inline my-2 my-lg-0">
            <button class="btn btn-outline-warning my-2 my-sm-0" type="submit">
                <a href="/file/upload">文件上传</a></button>
            <button class="btn btn-outline-danger my-2 my-sm-0" type="submit">
                <a href="/user/signin/">退出</a></button>
        </form>
    </div>
</nav>

<script src="../static/bootstrap/js/jquery-3.6.1.min.js"></script>
<script src="../static/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>